import { request } from '../../../request';

/** 审核 */
export function auditData(data: any) {
  return request({
    url: '/inspection/inspectionData/examinerForm',
    method: 'post',
    data
  });
}

/** 删除录入的实际表单数据 */
export function deleteDataForm(data: any) {
  return request({
    url: '/inspection/inspectionData/deleteDataForm',
    method: 'post',
    data
  });
}

/** 修改录入的实际表单数据 */
export function updateDataForm(data: any) {
  return request({
    url: '/inspection/inspectionData/updateDataItem',
    method: 'post',
    data
  });
}

/** 查询录入的检查项信息 */
export function getRightData(inspectionFormDataId: number, inspectionFormId: number) {
  return request({
    url: '/inspection/inspectionData/selectDataItems',
    method: 'get',
    params: { inspectionFormDataId, inspectionFormId }
  });
}

/** 撤审 */
export function withdrawal(data: any) {
  return request({
    url: '/inspection/inspectionData/rollBack',
    method: 'post',
    data
  });
}

/** 修改录入的实际表单数据 */
export function updateData(data: any) {
  return request({
    url: '/inspection/inspectionData/updateDataForm',
    method: 'post',
    data
  });
}
